//
//  Shop.m
//  tuangou
//
//  Created by quan jimmy on 11-11-26.
//  Copyright 2011年 tencent. All rights reserved.
//

#import "Shop.h"


@implementation Shop
@synthesize id,shop_lat,shop_tel,shop_addr,shop_area,shop_long,shop_name,deal_id;

- (id)initWithDict:(NSDictionary *)dict {
    self = [super init];
    if (self) {
        if (![dict isKindOfClass:[NSString class]]) {
            self.id = [[dict objectForKey:@"id"] intValue];
            self.deal_id = [[dict objectForKey:@"deal_id"] intValue];
            self.shop_tel = [dict objectForKey:@"shop_tel"];
            self.shop_addr = [dict objectForKey:@"v"];
            self.shop_area = [dict objectForKey:@"shop_area"];
            self.shop_name = [dict objectForKey:@"shop_name"];
            self.shop_lat = [[dict objectForKey:@"shop_lat"] floatValue];
            self.shop_long = [[dict objectForKey:@"shop_long"] floatValue];
        }
    }
    
    return self;
}
@end
